package apis

import (
	// "fmt"

	"gitee.com/kobeyyf/local_service/handler"
	// "github.com/russross/blackfriday.v2"
	"github.com/russross/blackfriday/v2"
)

const (
	md_temp = `# hello world

1. yang
2. yun 
3. fun


|编号|名称|
|-----|-----|
|1|名称1|
|2|名称2|

`
)

type MD struct{}

func (api *MD) Helper() string {
	return "解析md文件"
}

func (api *MD) HandlerFunc(c *handler.Context) *handler.Respone {
	output := blackfriday.Run([]byte(md_temp))
	c.W.Write(output)

	return nil
}
